#include <trax.hpp>

namespace AtomTrace{

const Vector3 & Vector3::LoadFromGM(int address)
{
    _x = loadf(address, 0);
    _y = loadf(address, 1);
    _z = loadf(address, 2);

    return *this;
}

const Vector3 LoadVectorFromGM(int address)
{
    return Vector3(loadf(address, 0), 
                   loadf(address, 1), 
                   loadf(address, 2));
}

} // namespace AtomTrace
